Skip to content

create PSP and PS2 ports#235

Draft
freshollie wants to merge 38 commits intomainfrom
psp-ps2
Draft

create PSP and PS2 ports#235
freshollie wants to merge 38 commits intomainfrom
psp-ps2

Conversation

@freshollie
Copy link
Collaborator

@freshollie freshollie commented Feb 16, 2026

  • Update software renderer to the gpsp renderer (fast enough to render on slow hardware)
  • Convert audio emulation to fixed point (since float is slower on these systems)
  • Add PSP as a target for SDL
  • Add PS2 as its own target, though it's still using the software renderer

Copy link
Collaborator

@JaceCear JaceCear left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have not looked at the rendering code.
Otherwise, please adjust/discuss! :)

// Handle horizontal and vertical tile flipping
if (entry & (1 << 10))
tileX = (TILE_WIDTH - 1) - tileX; // H-flip
tx = 7 - tx;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using magic numbers instead of TILE_WIDTH is less explicit.

#define getBlueChannel(x) (((x) >> 10) & 0x1F)
#define COLOR_OPAQUE 0x8000

static inline uint16_t alphaBlendColor(uint16_t targetA, uint16_t targetB, unsigned int eva, unsigned int evb)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: remove

// (u16 should be plenty for screen coordinates, right?)
#if !defined(DISPLAY_HEIGHT)
#error DISPLAY_HEIGHT not defined.
#if !defined(WIDESCREEN_HACK) && !PLATFORM_GBA
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be applied if we have widescreen hack on, since the winreg register size increases

@freshollie freshollie mentioned this pull request Feb 25, 2026
@freshollie freshollie changed the title Psp ps2 ports: create PSP and PS2 build Feb 25, 2026
@freshollie freshollie changed the title ports: create PSP and PS2 build create PSP and PS2 ports Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants